home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1989-06-01 | 10.6 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Thu Jun 1 15:57:03 1989, modified Thu Jun 1 15:57:03 1989, creator 'MPS ', type ASCII, 10303 bytes "TESample.h" , at 0x28bf 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 45 53 61 6d 70 | 6c 65 2e 68 00 00 00 00 |..TESamp|le.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 28 3f 00 | 00 01 7e a0 ab 45 8f a0 |.....(?.|..~..E..|
|00000060| ab 45 8f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.E......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b8 bb 00 00 |........|........|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 41 70 70 | 6c 65 20 4d 61 63 69 6e |.#.#.App|le Macin|
|000000e0| 74 6f 73 68 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |tosh Dev|eloper T|
|000000f0| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00000100| 0d 23 0d 23 09 4d 75 6c | 74 69 46 69 6e 64 65 72 |.#.#.Mul|tiFinder|
|00000110| 2d 41 77 61 72 65 20 54 | 65 78 74 45 64 69 74 20 |-Aware T|extEdit |
|00000120| 53 61 6d 70 6c 65 20 41 | 70 70 6c 69 63 61 74 69 |Sample A|pplicati|
|00000130| 6f 6e 0d 23 0d 23 09 54 | 45 53 61 6d 70 6c 65 0d |on.#.#.T|ESample.|
|00000140| 23 0d 23 09 54 45 53 61 | 6d 70 6c 65 2e 68 09 2d |#.#.TESa|mple.h.-|
|00000150| 09 52 65 7a 20 61 6e 64 | 20 43 20 49 6e 63 6c 75 |.Rez and| C Inclu|
|00000160| 64 65 20 53 6f 75 72 63 | 65 0d 23 0d 23 09 43 6f |de Sourc|e.#.#.Co|
|00000170| 70 79 72 69 67 68 74 20 | a9 20 31 39 38 39 20 41 |pyright |. 1989 A|
|00000180| 70 70 6c 65 20 43 6f 6d | 70 75 74 65 72 2c 20 49 |pple Com|puter, I|
|00000190| 6e 63 2e 0d 23 09 41 6c | 6c 20 72 69 67 68 74 73 |nc..#.Al|l rights|
|000001a0| 20 72 65 73 65 72 76 65 | 64 2e 0d 23 0d 23 09 56 | reserve|d..#.#.V|
|000001b0| 65 72 73 69 6f 6e 73 3a | 09 0d 23 09 09 09 09 31 |ersions:|..#....1|
|000001c0| 2e 30 30 09 09 09 09 30 | 38 2f 38 38 0d 23 09 09 |.00....0|8/88.#..|
|000001d0| 09 09 31 2e 30 31 09 09 | 09 09 31 31 2f 38 38 0d |..1.01..|..11/88.|
|000001e0| 23 09 09 09 09 31 2e 30 | 32 09 09 09 09 30 34 2f |#....1.0|2....04/|
|000001f0| 38 39 0d 23 09 09 09 09 | 31 2e 30 33 09 09 09 09 |89.#....|1.03....|
|00000200| 30 36 2f 38 39 0d 23 0d | 23 09 43 6f 6d 70 6f 6e |06/89.#.|#.Compon|
|00000210| 65 6e 74 73 3a 0d 23 09 | 09 09 09 54 45 53 61 6d |ents:.#.|...TESam|
|00000220| 70 6c 65 2e 70 09 09 09 | 4a 75 6e 65 20 31 2c 20 |ple.p...|June 1, |
|00000230| 31 39 38 39 0d 23 09 09 | 09 09 54 45 53 61 6d 70 |1989.#..|..TESamp|
|00000240| 6c 65 2e 63 09 09 09 4a | 75 6e 65 20 31 2c 20 31 |le.c...J|une 1, 1|
|00000250| 39 38 39 0d 23 09 09 09 | 09 54 45 53 61 6d 70 6c |989.#...|.TESampl|
|00000260| 65 47 6c 75 65 2e 61 09 | 09 4a 75 6e 65 20 31 2c |eGlue.a.|.June 1,|
|00000270| 20 31 39 38 39 09 2d 4d | 50 57 20 6f 6e 6c 79 2d | 1989.-M|PW only-|
|00000280| 0d 23 09 09 09 09 54 45 | 53 61 6d 70 6c 65 2e 72 |.#....TE|Sample.r|
|00000290| 09 09 09 4a 75 6e 65 20 | 31 2c 20 31 39 38 39 0d |...June |1, 1989.|
|000002a0| 23 09 09 09 09 54 45 53 | 61 6d 70 6c 65 2e 68 09 |#....TES|ample.h.|
|000002b0| 09 09 4a 75 6e 65 20 31 | 2c 20 31 39 38 39 0d 23 |..June 1|, 1989.#|
|000002c0| 09 09 09 09 50 54 45 53 | 61 6d 70 6c 65 2e 6d 61 |....PTES|ample.ma|
|000002d0| 6b 65 09 09 4a 75 6e 65 | 20 31 2c 20 31 39 38 39 |ke..June| 1, 1989|
|000002e0| 09 2d 4d 50 57 20 6f 6e | 6c 79 2d 0d 23 09 09 09 |.-MPW on|ly-.#...|
|000002f0| 09 43 54 45 53 61 6d 70 | 6c 65 2e 6d 61 6b 65 09 |.CTESamp|le.make.|
|00000300| 09 4a 75 6e 65 20 31 2c | 20 31 39 38 39 09 2d 4d |.June 1,| 1989.-M|
|00000310| 50 57 20 6f 6e 6c 79 2d | 0d 23 09 09 09 09 54 45 |PW only-|.#....TE|
|00000320| 53 61 6d 70 6c 65 47 6c | 75 65 2e 73 09 09 4a 75 |SampleGl|ue.s..Ju|
|00000330| 6e 65 20 31 2c 20 31 39 | 38 39 09 2d 41 2f 55 58 |ne 1, 19|89.-A/UX|
|00000340| 20 6f 6e 6c 79 2d 0d 23 | 09 09 09 09 54 45 53 61 | only-.#|....TESa|
|00000350| 6d 70 6c 65 41 55 58 2e | 72 09 09 4a 75 6e 65 20 |mpleAUX.|r..June |
|00000360| 31 2c 20 31 39 38 39 09 | 2d 41 2f 55 58 20 6f 6e |1, 1989.|-A/UX on|
|00000370| 6c 79 2d 0d 23 09 09 09 | 09 4d 61 6b 65 66 69 6c |ly-.#...|.Makefil|
|00000380| 65 09 09 09 4a 75 6e 65 | 20 31 2c 20 31 39 38 39 |e...June| 1, 1989|
|00000390| 09 2d 41 2f 55 58 20 6f | 6e 6c 79 2d 0d 23 0d 23 |.-A/UX o|nly-.#.#|
|000003a0| 09 54 45 53 61 6d 70 6c | 65 20 69 73 20 61 6e 20 |.TESampl|e is an |
|000003b0| 65 78 61 6d 70 6c 65 20 | 61 70 70 6c 69 63 61 74 |example |applicat|
|000003c0| 69 6f 6e 20 74 68 61 74 | 20 64 65 6d 6f 6e 73 74 |ion that| demonst|
|000003d0| 72 61 74 65 73 20 68 6f | 77 20 0d 23 09 74 6f 20 |rates ho|w .#.to |
|000003e0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 74 68 65 20 63 |initiali|ze the c|
|000003f0| 6f 6d 6d 6f 6e 6c 79 20 | 75 73 65 64 20 74 6f 6f |ommonly |used too|
|00000400| 6c 62 6f 78 20 6d 61 6e | 61 67 65 72 73 2c 20 6f |lbox man|agers, o|
|00000410| 70 65 72 61 74 65 20 0d | 23 09 73 75 63 63 65 73 |perate .|#.succes|
|00000420| 73 66 75 6c 6c 79 20 75 | 6e 64 65 72 20 4d 75 6c |sfully u|nder Mul|
|00000430| 74 69 46 69 6e 64 65 72 | 2c 20 68 61 6e 64 6c 65 |tiFinder|, handle|
|00000440| 20 64 65 73 6b 20 61 63 | 63 65 73 73 6f 72 69 65 | desk ac|cessorie|
|00000450| 73 20 61 6e 64 20 0d 23 | 09 63 72 65 61 74 65 2c |s and .#|.create,|
|00000460| 20 67 72 6f 77 2c 20 61 | 6e 64 20 7a 6f 6f 6d 20 | grow, a|nd zoom |
|00000470| 77 69 6e 64 6f 77 73 2e | 20 54 68 65 20 66 75 6e |windows.| The fun|
|00000480| 64 61 6d 65 6e 74 61 6c | 20 54 65 78 74 45 64 69 |damental| TextEdi|
|00000490| 74 20 0d 23 09 74 6f 6f | 6c 62 6f 78 20 63 61 6c |t .#.too|lbox cal|
|000004a0| 6c 73 20 61 6e 64 20 54 | 65 78 74 45 64 69 74 20 |ls and T|extEdit |
|000004b0| 61 75 74 6f 73 63 72 6f | 6c 6c 20 61 72 65 20 64 |autoscro|ll are d|
|000004c0| 65 6d 6f 6e 73 74 72 61 | 74 65 64 2e 20 49 74 20 |emonstra|ted. It |
|000004d0| 0d 23 09 61 6c 73 6f 20 | 73 68 6f 77 73 20 68 6f |.#.also |shows ho|
|000004e0| 77 20 74 6f 20 63 72 65 | 61 74 65 20 61 6e 64 20 |w to cre|ate and |
|000004f0| 6d 61 69 6e 74 61 69 6e | 20 73 63 72 6f 6c 6c 62 |maintain| scrollb|
|00000500| 61 72 20 63 6f 6e 74 72 | 6f 6c 73 2e 0d 23 0d 23 |ar contr|ols..#.#|
|00000510| 09 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 62 79 20 |.It does| not by |
|00000520| 61 6e 79 20 6d 65 61 6e | 73 20 64 65 6d 6f 6e 73 |any mean|s demons|
|00000530| 74 72 61 74 65 20 61 6c | 6c 20 74 68 65 20 74 65 |trate al|l the te|
|00000540| 63 68 6e 69 71 75 65 73 | 20 79 6f 75 20 0d 23 09 |chniques| you .#.|
|00000550| 6e 65 65 64 20 66 6f 72 | 20 61 20 6c 61 72 67 65 |need for| a large|
|00000560| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 49 6e | applica|tion. In|
|00000570| 20 70 61 72 74 69 63 75 | 6c 61 72 2c 20 53 61 6d | particu|lar, Sam|
|00000580| 70 6c 65 20 64 6f 65 73 | 20 6e 6f 74 20 0d 23 09 |ple does| not .#.|
|00000590| 63 6f 76 65 72 20 65 78 | 63 65 70 74 69 6f 6e 20 |cover ex|ception |
|000005a0| 68 61 6e 64 6c 69 6e 67 | 2c 20 6d 75 6c 74 69 70 |handling|, multip|
|000005b0| 6c 65 20 77 69 6e 64 6f | 77 73 2f 64 6f 63 75 6d |le windo|ws/docum|
|000005c0| 65 6e 74 73 2c 20 0d 23 | 09 73 6f 70 68 69 73 74 |ents, .#|.sophist|
|000005d0| 69 63 61 74 65 64 20 6d | 65 6d 6f 72 79 20 6d 61 |icated m|emory ma|
|000005e0| 6e 61 67 65 6d 65 6e 74 | 2c 20 70 72 69 6e 74 69 |nagement|, printi|
|000005f0| 6e 67 2c 20 6f 72 20 75 | 6e 64 6f 2e 20 41 6c 6c |ng, or u|ndo. All|
|00000600| 20 6f 66 20 0d 23 09 74 | 68 65 73 65 20 61 72 65 | of .#.t|hese are|
|00000610| 20 76 69 74 61 6c 20 70 | 61 72 74 73 20 6f 66 20 | vital p|arts of |
|00000620| 61 20 6e 6f 72 6d 61 6c | 20 66 75 6c 6c 2d 73 69 |a normal| full-si|
|00000630| 7a 65 64 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |zed appl|ication.|
|00000640| 0d 23 0d 23 09 54 68 69 | 73 20 61 70 70 6c 69 63 |.#.#.Thi|s applic|
|00000650| 61 74 69 6f 6e 20 69 73 | 20 61 6e 20 65 78 61 6d |ation is| an exam|
|00000660| 70 6c 65 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 20 |ple of t|he form |
|00000670| 6f 66 20 61 20 4d 61 63 | 69 6e 74 6f 73 68 20 0d |of a Mac|intosh .|
|00000680| 23 09 61 70 70 6c 69 63 | 61 74 69 6f 6e 3b 20 69 |#.applic|ation; i|
|00000690| 74 20 69 73 20 4e 4f 54 | 20 61 20 74 65 6d 70 6c |t is NOT| a templ|
|000006a0| 61 74 65 2e 20 49 74 20 | 69 73 20 4e 4f 54 20 69 |ate. It |is NOT i|
|000006b0| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 0d 23 |ntended |to be .#|
|000006c0| 09 75 73 65 64 20 61 73 | 20 61 20 66 6f 75 6e 64 |.used as| a found|
|000006d0| 61 74 69 6f 6e 20 66 6f | 72 20 74 68 65 20 6e 65 |ation fo|r the ne|
|000006e0| 78 74 20 77 6f 72 6c 64 | 2d 63 6c 61 73 73 2c 20 |xt world|-class, |
|000006f0| 62 65 73 74 2d 73 65 6c | 6c 69 6e 67 2c 20 0d 23 |best-sel|ling, .#|
|00000700| 09 36 30 30 4b 20 61 70 | 70 6c 69 63 61 74 69 6f |.600K ap|plicatio|
|00000710| 6e 2e 20 41 20 73 74 69 | 63 6b 20 66 69 67 75 72 |n. A sti|ck figur|
|00000720| 65 20 64 72 61 77 69 6e | 67 20 6f 66 20 74 68 65 |e drawin|g of the|
|00000730| 20 68 75 6d 61 6e 20 62 | 6f 64 79 20 6d 61 79 20 | human b|ody may |
|00000740| 0d 23 09 62 65 20 61 20 | 67 6f 6f 64 20 65 78 61 |.#.be a |good exa|
|00000750| 6d 70 6c 65 20 6f 66 20 | 74 68 65 20 66 6f 72 6d |mple of |the form|
|00000760| 20 66 6f 72 20 61 20 70 | 61 69 6e 74 69 6e 67 2c | for a p|ainting,|
|00000770| 20 62 75 74 20 74 68 61 | 74 20 64 6f 65 73 20 6e | but tha|t does n|
|00000780| 6f 74 20 0d 23 09 6d 65 | 61 6e 20 69 74 20 73 68 |ot .#.me|an it sh|
|00000790| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 61 73 20 |ould be |used as |
|000007a0| 74 68 65 20 62 61 73 69 | 73 20 66 6f 72 20 74 68 |the basi|s for th|
|000007b0| 65 20 6e 65 78 74 20 4d | 6f 6e 61 20 4c 69 73 61 |e next M|ona Lisa|
|000007c0| 2e 0d 23 0d 23 09 57 65 | 20 72 65 63 6f 6d 6d 65 |..#.#.We| recomme|
|000007d0| 6e 64 20 74 68 61 74 20 | 79 6f 75 20 72 65 76 69 |nd that |you revi|
|000007e0| 65 77 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |ew this |program |
|000007f0| 6f 72 20 53 61 6d 70 6c | 65 20 62 65 66 6f 72 65 |or Sampl|e before|
|00000800| 20 0d 23 09 62 65 67 69 | 6e 6e 69 6e 67 20 61 20 | .#.begi|nning a |
|00000810| 6e 65 77 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |new appl|ication.|
|00000820| 20 53 61 6d 70 6c 65 20 | 69 73 20 61 20 73 69 6d | Sample |is a sim|
|00000830| 70 6c 65 20 61 70 70 2e | 20 77 68 69 63 68 20 64 |ple app.| which d|
|00000840| 6f 65 73 6e d5 74 20 0d | 23 09 75 73 65 20 54 65 |oesn.t .|#.use Te|
|00000850| 78 74 45 64 69 74 20 6f | 72 20 74 68 65 20 43 6f |xtEdit o|r the Co|
|00000860| 6e 74 72 6f 6c 20 4d 61 | 6e 61 67 65 72 2e 0d 23 |ntrol Ma|nager..#|
|00000870| 0d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |--------|-------*|
|000008c0| 2f 0d 0d 2f 2a 09 54 68 | 65 73 65 20 23 64 65 66 |/../*.Th|ese #def|
|000008d0| 69 6e 65 73 20 63 6f 72 | 72 65 73 70 6f 6e 64 20 |ines cor|respond |
|000008e0| 74 6f 20 76 61 6c 75 65 | 73 20 69 6e 20 74 68 65 |to value|s in the|
|000008f0| 20 50 61 73 63 61 6c 20 | 73 6f 75 72 63 65 20 63 | Pascal |source c|
|00000900| 6f 64 65 2e 0d 09 54 45 | 53 61 6d 70 6c 65 2e 63 |ode...TE|Sample.c|
|00000910| 20 61 6e 64 20 54 45 53 | 61 6d 70 6c 65 2e 72 20 | and TES|ample.r |
|00000920| 69 6e 63 6c 75 64 65 20 | 74 68 69 73 20 66 69 6c |include |this fil|
|00000930| 65 2e 20 2a 2f 0d 0d 2f | 2a 09 44 65 74 65 72 6d |e. */../|*.Determ|
|00000940| 69 6e 69 6e 67 20 61 6e | 20 61 70 70 6c 69 63 61 |ining an| applica|
|00000950| 74 69 6f 6e 27 73 20 6d | 69 6e 69 6d 75 6d 20 73 |tion's m|inimum s|
|00000960| 69 7a 65 20 74 6f 20 72 | 65 71 75 65 73 74 20 66 |ize to r|equest f|
|00000970| 72 6f 6d 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 20 |rom Mult|iFinder |
|00000980| 64 65 70 65 6e 64 73 0d | 09 6f 6e 20 6d 61 6e 79 |depends.|.on many|
|00000990| 20 74 68 69 6e 67 73 2c | 20 65 61 63 68 20 6f 66 | things,| each of|
|000009a0| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 75 6e | which c|an be un|
|000009b0| 69 71 75 65 20 74 6f 20 | 61 6e 20 61 70 70 6c 69 |ique to |an appli|
|000009c0| 63 61 74 69 6f 6e 27 73 | 20 66 75 6e 63 74 69 6f |cation's| functio|
|000009d0| 6e 2c 0d 09 74 68 65 20 | 61 6e 74 69 63 69 70 61 |n,..the |anticipa|
|000009e0| 74 65 64 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2c |ted envi|ronment,|
|000009f0| 20 74 68 65 20 64 65 76 | 65 6c 6f 70 65 72 27 73 | the dev|eloper's|
|00000a00| 20 61 74 74 69 74 75 64 | 65 20 6f 66 20 77 68 61 | attitud|e of wha|
|00000a10| 74 20 63 6f 6e 73 74 69 | 74 75 74 65 73 0d 09 72 |t consti|tutes..r|
|00000a20| 65 61 73 6f 6e 61 62 6c | 65 20 66 75 6e 63 74 69 |easonabl|e functi|
|00000a30| 6f 6e 61 6c 69 74 79 20 | 61 6e 64 20 70 65 72 66 |onality |and perf|
|00000a40| 6f 72 6d 61 6e 63 65 2c | 20 65 74 63 2e 20 48 65 |ormance,| etc. He|
|00000a50| 72 65 20 69 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |re is a |list of |
|00000a60| 73 6f 6d 65 20 74 68 69 | 6e 67 73 20 74 6f 0d 09 |some thi|ngs to..|
|00000a70| 63 6f 6e 73 69 64 65 72 | 20 77 68 65 6e 20 64 65 |consider| when de|
|00000a80| 74 65 72 6d 69 6e 69 6e | 67 20 74 68 65 20 6d 69 |terminin|g the mi|
|00000a90| 6e 69 6d 75 6d 20 73 69 | 7a 65 20 28 61 6e 64 20 |nimum si|ze (and |
|00000aa0| 70 72 65 66 65 72 72 65 | 64 20 73 69 7a 65 29 20 |preferre|d size) |
|00000ab0| 66 6f 72 20 79 6f 75 72 | 0d 09 61 70 70 6c 69 63 |for your|..applic|
|00000ac0| 61 74 69 6f 6e 2e 20 54 | 68 65 20 6c 69 73 74 20 |ation. T|he list |
|00000ad0| 69 73 20 70 72 65 74 74 | 79 20 6d 75 63 68 20 69 |is prett|y much i|
|00000ae0| 6e 20 6f 72 64 65 72 20 | 6f 66 20 69 6d 70 6f 72 |n order |of impor|
|00000af0| 74 61 6e 63 65 2c 20 62 | 75 74 20 62 79 20 6e 6f |tance, b|ut by no|
|00000b00| 20 6d 65 61 6e 73 0d 09 | 63 6f 6d 70 6c 65 74 65 | means..|complete|
|00000b10| 2e 0d 09 0d 09 31 2e 09 | 57 68 61 74 20 69 73 20 |.....1..|What is |
|00000b20| 74 68 65 20 6d 69 6e 69 | 6d 75 6d 20 73 69 7a 65 |the mini|mum size|
|00000b30| 20 6e 65 65 64 65 64 20 | 74 6f 20 67 69 76 65 20 | needed |to give |
|00000b40| 61 6c 6d 6f 73 74 20 31 | 30 30 20 70 65 72 63 65 |almost 1|00 perce|
|00000b50| 6e 74 20 61 73 73 75 72 | 61 6e 63 65 0d 09 09 74 |nt assur|ance...t|
|00000b60| 68 61 74 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |hat the |applicat|
|00000b70| 69 6f 6e 20 77 6f 6e 27 | 74 20 63 72 61 73 68 20 |ion won'|t crash |
|00000b80| 62 65 63 61 75 73 65 20 | 69 74 20 72 61 6e 20 6f |because |it ran o|
|00000b90| 75 74 20 6f 66 20 6d 65 | 6d 6f 72 79 3f 20 54 68 |ut of me|mory? Th|
|00000ba0| 69 73 0d 09 09 69 6e 63 | 6c 75 64 65 73 20 6e 6f |is...inc|ludes no|
|00000bb0| 74 20 6f 6e 6c 79 20 74 | 68 69 6e 67 73 20 74 68 |t only t|hings th|
|00000bc0| 61 74 20 79 6f 75 20 64 | 6f 20 68 61 76 65 20 64 |at you d|o have d|
|00000bd0| 69 72 65 63 74 20 63 6f | 6e 74 72 6f 6c 20 6f 76 |irect co|ntrol ov|
|00000be0| 65 72 20 73 75 63 68 20 | 61 73 0d 09 09 63 68 65 |er such |as...che|
|00000bf0| 63 6b 69 6e 67 20 66 6f | 72 20 4e 49 4c 20 68 61 |cking fo|r NIL ha|
|00000c00| 6e 64 6c 65 73 20 61 6e | 64 20 70 6f 69 6e 74 65 |ndles an|d pointe|
|00000c10| 72 73 2c 20 62 75 74 20 | 61 6c 73 6f 20 74 68 69 |rs, but |also thi|
|00000c20| 6e 67 73 20 74 68 61 74 | 20 73 6f 6d 65 0d 09 09 |ngs that| some...|
|00000c30| 66 65 65 6c 20 61 72 65 | 20 6e 6f 74 20 73 6f 20 |feel are| not so |
|00000c40| 6d 75 63 68 20 75 6e 64 | 65 72 20 74 68 65 69 72 |much und|er their|
|00000c50| 20 63 6f 6e 74 72 6f 6c | 20 73 75 63 68 20 61 73 | control| such as|
|00000c60| 20 51 75 69 63 6b 44 72 | 61 77 20 61 6e 64 20 74 | QuickDr|aw and t|
|00000c70| 68 65 0d 09 09 53 65 67 | 6d 65 6e 74 20 4c 6f 61 |he...Seg|ment Loa|
|00000c80| 64 65 72 2e 0d 09 09 0d | 09 32 2e 09 57 68 61 74 |der.....|.2..What|
|00000c90| 20 6b 69 6e 64 20 6f 66 | 20 70 65 72 66 6f 72 6d | kind of| perform|
|00000ca0| 61 6e 63 65 20 63 61 6e | 20 61 20 75 73 65 72 20 |ance can| a user |
|00000cb0| 65 78 70 65 63 74 20 66 | 72 6f 6d 20 74 68 65 20 |expect f|rom the |
|00000cc0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 68 65 6e |applicat|ion when|
|00000cd0| 0d 09 09 69 74 20 69 73 | 20 72 75 6e 6e 69 6e 67 |...it is| running|
|00000ce0| 20 69 6e 20 74 68 65 20 | 6d 69 6e 69 6d 75 6d 20 | in the |minimum |
|00000cf0| 6d 65 6d 6f 72 79 20 63 | 6f 6e 66 69 67 75 72 61 |memory c|onfigura|
|00000d00| 74 69 6f 6e 3f 20 50 65 | 72 66 6f 72 6d 61 6e 63 |tion? Pe|rformanc|
|00000d10| 65 20 69 6e 63 6c 75 64 | 65 73 0d 09 09 6e 6f 74 |e includ|es...not|
|00000d20| 20 6f 6e 6c 79 20 73 70 | 65 65 64 20 69 6e 20 68 | only sp|eed in h|
|00000d30| 61 6e 64 6c 69 6e 67 20 | 64 61 74 61 2c 20 62 75 |andling |data, bu|
|00000d40| 74 20 61 6c 73 6f 20 74 | 68 69 6e 67 73 20 6c 69 |t also t|hings li|
|00000d50| 6b 65 20 68 6f 77 20 6d | 61 6e 79 20 64 6f 63 75 |ke how m|any docu|
|00000d60| 6d 65 6e 74 73 0d 09 09 | 63 61 6e 20 62 65 20 6f |ments...|can be o|
|00000d70| 70 65 6e 65 64 2c 20 65 | 74 63 2e 0d 09 09 0d 09 |pened, e|tc......|
|00000d80| 33 2e 09 57 68 61 74 20 | 61 72 65 20 74 68 65 20 |3..What |are the |
|00000d90| 74 79 70 69 63 61 6c 20 | 73 69 7a 65 73 20 6f 66 |typical |sizes of|
|00000da0| 20 73 63 72 61 70 73 20 | 69 73 20 5b 61 20 62 6f | scraps |is [a bo|
|00000db0| 79 20 64 6f 67 5d 20 74 | 68 61 74 20 61 20 75 73 |y dog] t|hat a us|
|00000dc0| 65 72 20 6d 69 67 68 74 | 0d 09 09 77 69 73 68 20 |er might|...wish |
|00000dd0| 74 6f 20 77 6f 72 6b 20 | 77 69 74 68 20 77 68 65 |to work |with whe|
|00000de0| 6e 20 6c 61 75 63 68 69 | 6e 67 20 6f 72 20 73 77 |n lauchi|ng or sw|
|00000df0| 69 74 63 68 69 6e 67 20 | 74 6f 20 79 6f 75 72 20 |itching |to your |
|00000e00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 3f 20 49 66 0d |applicat|ion? If.|
|00000e10| 09 09 74 68 65 20 61 6d | 6f 75 6e 74 20 6f 66 20 |..the am|ount of |
|00000e20| 6d 65 6d 6f 72 79 20 69 | 73 20 74 6f 6f 20 73 6d |memory i|s too sm|
|00000e30| 61 6c 6c 2c 20 74 68 65 | 20 73 63 72 61 70 20 6d |all, the| scrap m|
|00000e40| 61 79 20 67 65 74 20 6c | 6f 73 74 20 5b 77 69 6c |ay get l|ost [wil|
|00000e50| 6c 20 68 61 76 65 0d 09 | 09 74 6f 20 62 65 20 73 |l have..|.to be s|
|00000e60| 68 6f 74 5d 2e 20 54 68 | 69 73 20 63 61 6e 20 62 |hot]. Th|is can b|
|00000e70| 65 20 71 75 69 74 65 20 | 66 72 75 73 74 72 61 74 |e quite |frustrat|
|00000e80| 69 6e 67 20 74 6f 20 74 | 68 65 20 75 73 65 72 2e |ing to t|he user.|
|00000e90| 0d 09 09 0d 09 34 2e 09 | 54 68 65 20 70 72 65 76 |.....4..|The prev|
|00000ea0| 69 6f 75 73 20 69 74 65 | 6d 73 20 68 61 76 65 20 |ious ite|ms have |
|00000eb0| 63 6f 6e 63 65 6e 74 72 | 61 74 65 64 20 6f 6e 20 |concentr|ated on |
|00000ec0| 74 6f 70 69 63 73 20 74 | 68 61 74 20 74 65 6e 64 |topics t|hat tend|
|00000ed0| 20 74 6f 20 63 61 75 73 | 65 20 61 6e 0d 09 09 69 | to caus|e an...i|
|00000ee0| 6e 63 72 65 61 73 65 20 | 69 6e 20 74 68 65 20 6d |ncrease |in the m|
|00000ef0| 69 6e 69 6d 75 6d 20 73 | 69 7a 65 20 74 6f 20 72 |inimum s|ize to r|
|00000f00| 65 71 75 65 73 74 20 66 | 72 6f 6d 20 4d 75 6c 74 |equest f|rom Mult|
|00000f10| 69 46 69 6e 64 65 72 2e | 20 4f 6e 20 74 68 65 20 |iFinder.| On the |
|00000f20| 66 6c 69 70 0d 09 09 73 | 69 64 65 2c 20 68 6f 77 |flip...s|ide, how|
|00000f30| 65 76 65 72 2c 20 73 68 | 6f 75 6c 64 20 62 65 20 |ever, sh|ould be |
|00000f40| 74 68 65 20 63 6f 6e 73 | 69 64 65 72 61 74 69 6f |the cons|ideratio|
|00000f50| 6e 20 6f 66 20 77 68 61 | 74 20 65 6e 76 69 72 6f |n of wha|t enviro|
|00000f60| 6e 6d 65 6e 74 73 20 74 | 68 65 0d 09 09 61 70 70 |nments t|he...app|
|00000f70| 6c 69 63 61 74 69 6f 6e | 20 6d 61 79 20 62 65 20 |lication| may be |
|00000f80| 72 75 6e 6e 69 6e 67 20 | 69 6e 2e 20 54 68 65 72 |running |in. Ther|
|00000f90| 65 20 6d 61 79 20 62 65 | 20 61 20 68 69 67 68 20 |e may be| a high |
|00000fa0| 70 72 6f 62 61 62 69 6c | 69 74 79 20 74 68 61 74 |probabil|ity that|
|00000fb0| 0d 09 09 6d 61 6e 79 20 | 75 73 65 72 73 20 77 69 |...many |users wi|
|00000fc0| 74 68 20 72 65 6c 61 74 | 69 76 65 6c 79 20 73 6d |th relat|ively sm|
|00000fd0| 61 6c 6c 20 6d 65 6d 6f | 72 79 20 63 6f 6e 66 69 |all memo|ry confi|
|00000fe0| 67 75 72 61 74 69 6f 6e | 73 20 77 69 6c 6c 20 77 |guration|s will w|
|00000ff0| 61 6e 74 20 74 6f 0d 09 | 09 61 76 61 69 6c 20 74 |ant to..|.avail t|
|00001000| 68 65 6d 73 65 6c 76 65 | 73 20 6f 66 20 79 6f 75 |hemselve|s of you|
|00001010| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 4f |r applic|ation. O|
|00001020| 72 2c 20 6d 61 6e 79 20 | 75 73 65 72 73 20 6d 69 |r, many |users mi|
|00001030| 67 68 74 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |ght want| to use |
|00001040| 69 74 0d 09 09 77 68 69 | 6c 65 20 73 65 76 65 72 |it...whi|le sever|
|00001050| 61 6c 20 6f 74 68 65 72 | 2c 20 70 6f 73 73 69 62 |al other|, possib|
|00001060| 6c 79 20 72 65 6c 61 74 | 65 64 2f 63 6f 6d 70 6c |ly relat|ed/compl|
|00001070| 65 6d 65 6e 74 61 72 79 | 20 61 70 70 6c 69 63 61 |ementary| applica|
|00001080| 74 69 6f 6e 73 20 61 72 | 65 0d 09 09 72 75 6e 6e |tions ar|e...runn|
|00001090| 69 6e 67 2e 20 49 66 20 | 74 68 61 74 20 69 73 20 |ing. If |that is |
|000010a0| 74 68 65 20 63 61 73 65 | 2c 20 69 74 20 77 6f 75 |the case|, it wou|
|000010b0| 6c 64 20 62 65 20 68 65 | 6c 70 66 75 6c 20 74 6f |ld be he|lpful to|
|000010c0| 20 68 61 76 65 20 61 20 | 66 61 69 72 6c 79 0d 09 | have a |fairly..|
|000010d0| 09 73 6d 61 6c 6c 20 6d | 69 6e 69 6d 75 6d 20 73 |.small m|inimum s|
|000010e0| 69 7a 65 2e 0d 09 0d 09 | 57 68 61 74 20 77 65 20 |ize.....|What we |
|000010f0| 64 69 64 20 66 6f 72 20 | 54 45 53 61 6d 70 6c 65 |did for |TESample|
|00001100| 3a 0d 09 0d 09 09 57 65 | 20 64 65 74 65 72 6d 69 |:.....We| determi|
|00001110| 6e 65 64 20 74 68 65 20 | 73 6d 61 6c 6c 65 73 74 |ned the |smallest|
|00001120| 20 68 65 61 70 20 73 69 | 7a 65 20 74 68 61 74 20 | heap si|ze that |
|00001130| 54 45 53 61 6d 70 6c 65 | 20 63 6f 75 6c 64 20 68 |TESample| could h|
|00001140| 61 76 65 20 61 6e 64 20 | 73 74 69 6c 6c 0d 09 09 |ave and |still...|
|00001150| 72 75 6e 20 28 32 32 4b | 29 2e 20 46 6f 72 20 74 |run (22K|). For t|
|00001160| 68 65 20 70 72 65 66 65 | 72 72 65 64 20 73 69 7a |he prefe|rred siz|
|00001170| 65 20 77 65 20 61 64 64 | 65 64 20 65 6e 6f 75 67 |e we add|ed enoug|
|00001180| 68 20 73 70 61 63 65 20 | 74 6f 20 70 65 72 6d 69 |h space |to permi|
|00001190| 74 3a 0d 09 09 09 61 2e | 20 61 20 6d 61 78 69 6d |t:....a.| a maxim|
|000011a0| 75 6d 20 73 69 7a 65 20 | 54 65 78 74 45 64 69 74 |um size |TextEdit|
|000011b0| 20 74 65 78 74 20 68 61 | 6e 64 6c 65 20 28 33 32 | text ha|ndle (32|
|000011c0| 30 30 30 20 63 68 61 72 | 61 63 74 65 72 73 29 0d |000 char|acters).|
|000011d0| 09 09 09 62 2e 20 61 20 | 6d 61 78 69 6d 75 6d 20 |...b. a |maximum |
|000011e0| 75 73 61 62 6c 65 20 54 | 65 78 74 45 64 69 74 20 |usable T|extEdit |
|000011f0| 73 63 72 61 70 20 28 33 | 32 30 30 30 20 63 68 61 |scrap (3|2000 cha|
|00001200| 72 61 63 74 65 72 73 29 | 0d 09 09 09 62 2e 20 61 |racters)|....b. a|
|00001210| 20 6d 61 78 69 6d 75 6d | 20 73 63 72 61 70 20 61 | maximum| scrap a|
|00001220| 73 20 61 20 72 65 73 75 | 6c 74 20 6f 66 20 43 6f |s a resu|lt of Co|
|00001230| 70 79 20 28 33 32 30 30 | 30 20 63 68 61 72 61 63 |py (3200|0 charac|
|00001240| 74 65 72 73 29 0d 09 09 | 09 64 2e 20 61 20 6c 69 |ters)...|.d. a li|
|00001250| 74 74 6c 65 20 70 65 72 | 66 6f 72 6d 61 6e 63 65 |ttle per|formance|
|00001260| 20 63 75 73 68 69 6f 6e | 20 28 73 65 65 20 32 2c | cushion| (see 2,|
|00001270| 20 61 62 6f 76 65 29 20 | 28 31 30 4b 29 0d 09 09 | above) |(10K)...|
|00001280| 52 65 73 75 6c 74 3a 20 | 31 32 32 4b 20 66 6f 72 |Result: |122K for|
|00001290| 20 70 72 65 66 65 72 72 | 65 64 20 73 69 7a 65 0d | preferr|ed size.|
|000012a0| 09 09 0d 09 09 46 6f 72 | 20 74 68 65 20 6d 69 6e |.....For| the min|
|000012b0| 69 6d 75 6d 20 73 69 7a | 65 20 77 65 20 74 6f 6f |imum siz|e we too|
|000012c0| 6b 20 74 68 65 20 32 32 | 4b 20 61 6e 64 20 74 68 |k the 22|K and th|
|000012d0| 65 6e 20 73 63 61 6c 65 | 64 20 64 6f 77 6e 20 6f |en scale|d down o|
|000012e0| 75 72 20 72 65 71 75 69 | 72 65 6d 65 6e 74 73 0d |ur requi|rements.|
|000012f0| 09 09 66 6f 72 20 61 2c | 62 2c 20 61 6e 64 20 63 |..for a,|b, and c|
|00001300| 20 61 62 6f 76 65 2e 20 | 57 65 20 74 68 6f 75 67 | above. |We thoug|
|00001310| 68 74 20 74 68 61 74 20 | 70 72 6f 76 69 64 69 6e |ht that |providin|
|00001320| 67 20 31 36 4b 20 6d 6f | 72 65 20 77 6f 75 6c 64 |g 16K mo|re would|
|00001330| 20 62 65 20 6c 65 61 6e | 0d 09 09 61 6e 64 20 6d | be lean|...and m|
|00001340| 65 61 6e 20 28 73 65 65 | 20 34 2c 20 61 62 6f 76 |ean (see| 4, abov|
|00001350| 65 29 2e 0d 09 09 52 65 | 73 75 6c 74 3a 20 33 38 |e)....Re|sult: 38|
|00001360| 4b 20 66 6f 72 20 6d 69 | 6e 69 6d 75 6d 20 73 69 |K for mi|nimum si|
|00001370| 7a 65 0d 2a 2f 0d 20 0d | 23 64 65 66 69 6e 65 20 |ze.*/. .|#define |
|00001380| 6b 50 72 65 66 53 69 7a | 65 09 09 09 09 31 32 32 |kPrefSiz|e....122|
|00001390| 0d 23 64 65 66 69 6e 65 | 20 6b 4d 69 6e 53 69 7a |.#define| kMinSiz|
|000013a0| 65 09 09 09 09 33 38 0d | 09 0d 2f 2a 20 54 68 65 |e....38.|../* The|
|000013b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6e 73 74 | followi|ng const|
|000013c0| 61 6e 74 73 20 61 72 65 | 20 75 73 65 64 20 74 6f |ants are| used to|
|000013d0| 20 69 64 65 6e 74 69 66 | 79 20 6d 65 6e 75 73 20 | identif|y menus |
|000013e0| 61 6e 64 20 74 68 65 69 | 72 20 69 74 65 6d 73 2e |and thei|r items.|
|000013f0| 20 54 68 65 20 6d 65 6e | 75 20 49 44 73 0d 20 20 | The men|u IDs. |
|00001400| 20 68 61 76 65 20 61 6e | 20 22 6d 22 20 70 72 65 | have an| "m" pre|
|00001410| 66 69 78 20 61 6e 64 20 | 74 68 65 20 69 74 65 6d |fix and |the item|
|00001420| 20 6e 75 6d 62 65 72 73 | 20 77 69 74 68 69 6e 20 | numbers| within |
|00001430| 65 61 63 68 20 6d 65 6e | 75 20 68 61 76 65 20 61 |each men|u have a|
|00001440| 6e 20 22 69 22 20 70 72 | 65 66 69 78 2e 20 2a 2f |n "i" pr|efix. */|
|00001450| 0d 23 64 65 66 69 6e 65 | 09 6d 41 70 70 6c 65 09 |.#define|.mApple.|
|00001460| 09 09 09 09 31 32 38 09 | 09 2f 2a 20 41 70 70 6c |....128.|./* Appl|
|00001470| 65 20 6d 65 6e 75 20 2a | 2f 0d 23 64 65 66 69 6e |e menu *|/.#defin|
|00001480| 65 09 69 41 62 6f 75 74 | 09 09 09 09 09 31 0d 0d |e.iAbout|.....1..|
|00001490| 23 64 65 66 69 6e 65 09 | 6d 46 69 6c 65 09 09 09 |#define.|mFile...|
|000014a0| 09 09 31 32 39 09 09 2f | 2a 20 46 69 6c 65 20 6d |..129../|* File m|
|000014b0| 65 6e 75 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 69 |enu */.#|define.i|
|000014c0| 4e 65 77 09 09 09 09 09 | 31 0d 23 64 65 66 69 6e |New.....|1.#defin|
|000014d0| 65 09 69 43 6c 6f 73 65 | 09 09 09 09 09 34 0d 23 |e.iClose|.....4.#|
|000014e0| 64 65 66 69 6e 65 09 69 | 51 75 69 74 09 09 09 09 |define.i|Quit....|
|000014f0| 09 31 32 0d 0d 23 64 65 | 66 69 6e 65 09 6d 45 64 |.12..#de|fine.mEd|
|00001500| 69 74 09 09 09 09 09 31 | 33 30 09 09 2f 2a 20 45 |it.....1|30../* E|
|00001510| 64 69 74 20 6d 65 6e 75 | 20 2a 2f 0d 23 64 65 66 |dit menu| */.#def|
|00001520| 69 6e 65 09 69 55 6e 64 | 6f 09 09 09 09 09 31 0d |ine.iUnd|o.....1.|
|00001530| 23 64 65 66 69 6e 65 09 | 69 43 75 74 09 09 09 09 |#define.|iCut....|
|00001540| 09 33 0d 23 64 65 66 69 | 6e 65 09 69 43 6f 70 79 |.3.#defi|ne.iCopy|
|00001550| 09 09 09 09 09 34 0d 23 | 64 65 66 69 6e 65 09 69 |.....4.#|define.i|
|00001560| 50 61 73 74 65 09 09 09 | 09 09 35 0d 23 64 65 66 |Paste...|..5.#def|
|00001570| 69 6e 65 09 69 43 6c 65 | 61 72 09 09 09 09 09 36 |ine.iCle|ar.....6|
|00001580| 0d 0d 2f 2a 09 31 2e 30 | 31 20 2d 20 6b 54 6f 70 |../*.1.0|1 - kTop|
|00001590| 4c 65 66 74 20 2d 20 54 | 68 69 73 20 69 73 20 66 |Left - T|his is f|
|000015a0| 6f 72 20 70 6f 73 69 74 | 69 6f 6e 69 6e 67 20 74 |or posit|ioning t|
|000015b0| 68 65 20 44 69 73 6b 20 | 49 6e 69 74 69 61 6c 69 |he Disk |Initiali|
|000015c0| 7a 61 74 69 6f 6e 20 64 | 69 61 6c 6f 67 73 2e 20 |zation d|ialogs. |
|000015d0| 2a 2f 0d 0d 23 64 65 66 | 69 6e 65 20 6b 44 49 54 |*/..#def|ine kDIT|
|000015e0| 6f 70 09 09 09 09 09 30 | 78 30 30 35 30 0d 23 64 |op.....0|x0050.#d|
|000015f0| 65 66 69 6e 65 20 6b 44 | 49 4c 65 66 74 09 09 09 |efine kD|ILeft...|
|00001600| 09 09 30 78 30 30 37 30 | 0d 0d 2f 2a 20 31 2e 30 |..0x0070|../* 1.0|
|00001610| 31 20 2d 20 63 68 61 6e | 67 65 64 20 63 6f 6e 73 |1 - chan|ged cons|
|00001620| 74 61 6e 74 73 20 74 6f | 20 62 65 67 69 6e 20 77 |tants to| begin w|
|00001630| 69 74 68 20 27 6b 27 20 | 66 6f 72 20 63 6f 6e 73 |ith 'k' |for cons|
|00001640| 69 73 74 65 6e 63 79 2c | 20 65 78 63 65 70 74 20 |istency,| except |
|00001650| 66 6f 72 20 72 65 73 6f | 75 72 63 65 20 49 44 73 |for reso|urce IDs|
|00001660| 20 2a 2f 0d 2f 2a 09 6b | 54 65 78 74 4d 61 72 67 | */./*.k|TextMarg|
|00001670| 69 6e 20 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |in is th|e number|
|00001680| 20 6f 66 20 70 69 78 65 | 6c 73 20 77 65 20 6c 65 | of pixe|ls we le|
|00001690| 61 76 65 20 62 6c 61 6e | 6b 20 61 74 20 74 68 65 |ave blan|k at the|
|000016a0| 20 65 64 67 65 20 6f 66 | 20 74 68 65 20 77 69 6e | edge of| the win|
|000016b0| 64 6f 77 2e 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |dow. */.|#define |
|000016c0| 6b 54 65 78 74 4d 61 72 | 67 69 6e 09 09 09 09 32 |kTextMar|gin....2|
|000016d0| 0d 0d 2f 2a 20 6b 4d 61 | 78 4f 70 65 6e 44 6f 63 |../* kMa|xOpenDoc|
|000016e0| 75 6d 65 6e 74 73 20 69 | 73 20 75 73 65 64 20 74 |uments i|s used t|
|000016f0| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 77 68 65 74 |o determ|ine whet|
|00001700| 68 65 72 20 61 20 6e 65 | 77 20 64 6f 63 75 6d 65 |her a ne|w docume|
|00001710| 6e 74 20 63 61 6e 20 62 | 65 20 6f 70 65 6e 65 64 |nt can b|e opened|
|00001720| 0d 20 20 20 6f 72 20 63 | 72 65 61 74 65 64 2e 20 |. or c|reated. |
|00001730| 57 65 20 6b 65 65 70 20 | 74 72 61 63 6b 20 6f 66 |We keep |track of|
|00001740| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6f | the num|ber of o|
|00001750| 70 65 6e 20 64 6f 63 75 | 6d 65 6e 74 73 2c 20 61 |pen docu|ments, a|
|00001760| 6e 64 20 64 69 73 61 62 | 6c 65 20 74 68 65 0d 20 |nd disab|le the. |
|00001770| 20 20 6d 65 6e 75 20 69 | 74 65 6d 73 20 74 68 61 | menu i|tems tha|
|00001780| 74 20 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 64 |t create| a new d|
|00001790| 6f 63 75 6d 65 6e 74 20 | 77 68 65 6e 20 74 68 65 |ocument |when the|
|000017a0| 20 6d 61 78 69 6d 75 6d | 20 69 73 20 72 65 61 63 | maximum| is reac|
|000017b0| 68 65 64 2e 20 49 66 20 | 74 68 65 0d 20 20 20 6e |hed. If |the. n|
|000017c0| 75 6d 62 65 72 20 6f 66 | 20 64 6f 63 75 6d 65 6e |umber of| documen|
|000017d0| 74 73 20 66 61 6c 6c 73 | 20 62 65 6c 6f 77 20 74 |ts falls| below t|
|000017e0| 68 65 20 6d 61 78 69 6d | 75 6d 2c 20 74 68 65 20 |he maxim|um, the |
|000017f0| 69 74 65 6d 73 20 61 72 | 65 20 65 6e 61 62 6c 65 |items ar|e enable|
|00001800| 64 20 61 67 61 69 6e 2e | 20 2a 2f 0d 23 64 65 66 |d again.| */.#def|
|00001810| 69 6e 65 09 6b 4d 61 78 | 4f 70 65 6e 44 6f 63 75 |ine.kMax|OpenDocu|
|00001820| 6d 65 6e 74 73 09 09 31 | 0d 09 0d 2f 2a 09 6b 4d |ments..1|.../*.kM|
|00001830| 61 78 44 6f 63 57 69 64 | 74 68 20 69 73 20 61 6e |axDocWid|th is an|
|00001840| 20 61 72 62 69 74 72 61 | 72 79 20 6e 75 6d 62 65 | arbitra|ry numbe|
|00001850| 72 20 75 73 65 64 20 74 | 6f 20 73 70 65 63 69 66 |r used t|o specif|
|00001860| 79 20 74 68 65 20 77 69 | 64 74 68 20 6f 66 20 74 |y the wi|dth of t|
|00001870| 68 65 20 54 45 52 65 63 | 27 73 0d 09 64 65 73 74 |he TERec|'s..dest|
|00001880| 69 6e 61 74 69 6f 6e 20 | 72 65 63 74 61 6e 67 6c |ination |rectangl|
|00001890| 65 20 73 6f 20 74 68 61 | 74 20 77 6f 72 64 20 77 |e so tha|t word w|
|000018a0| 72 61 70 20 61 6e 64 20 | 68 6f 72 69 7a 6f 6e 74 |rap and |horizont|
|000018b0| 61 6c 20 73 63 72 6f 6c | 6c 69 6e 67 20 63 61 6e |al scrol|ling can|
|000018c0| 20 62 65 0d 09 64 65 6d | 6f 6e 73 74 72 61 74 65 | be..dem|onstrate|
|000018d0| 64 2e 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 6b 4d |d. */.#d|efine.kM|
|000018e0| 61 78 44 6f 63 57 69 64 | 74 68 09 09 09 35 37 36 |axDocWid|th...576|
|000018f0| 0d 09 0d 2f 2a 20 6b 4d | 69 6e 44 6f 63 44 69 6d |.../* kM|inDocDim|
|00001900| 20 69 73 20 75 73 65 64 | 20 74 6f 20 6c 69 6d 69 | is used| to limi|
|00001910| 74 20 74 68 65 20 6d 69 | 6e 69 6d 75 6d 20 64 69 |t the mi|nimum di|
|00001920| 6d 65 6e 73 69 6f 6e 20 | 6f 66 20 61 20 77 69 6e |mension |of a win|
|00001930| 64 6f 77 20 77 68 65 6e | 20 47 72 6f 77 57 69 6e |dow when| GrowWin|
|00001940| 64 6f 77 0d 09 69 73 20 | 63 61 6c 6c 65 64 2e 20 |dow..is |called. |
|00001950| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 6b 4d 69 6e 44 |*/.#defi|ne.kMinD|
|00001960| 6f 63 44 69 6d 09 09 09 | 09 36 34 0d 0d 2f 2a 09 |ocDim...|.64../*.|
|00001970| 6b 43 6f 6e 74 72 6f 6c | 49 6e 76 69 73 69 62 6c |kControl|Invisibl|
|00001980| 65 20 69 73 20 75 73 65 | 64 20 74 6f 20 27 74 75 |e is use|d to 'tu|
|00001990| 72 6e 20 6f 66 66 27 20 | 63 6f 6e 74 72 6f 6c 73 |rn off' |controls|
|000019a0| 20 28 69 2e 65 2e 2c 20 | 63 61 75 73 65 20 74 68 | (i.e., |cause th|
|000019b0| 65 20 63 6f 6e 74 72 6f | 6c 20 6e 6f 74 0d 09 74 |e contro|l not..t|
|000019c0| 6f 20 62 65 20 72 65 64 | 72 61 77 6e 20 61 73 20 |o be red|rawn as |
|000019d0| 61 20 72 65 73 75 6c 74 | 20 6f 66 20 73 6f 6d 65 |a result| of some|
|000019e0| 20 43 6f 6e 74 72 6f 6c | 20 4d 61 6e 61 67 65 72 | Control| Manager|
|000019f0| 20 63 61 6c 6c 20 73 75 | 63 68 20 61 73 20 53 65 | call su|ch as Se|
|00001a00| 74 43 74 6c 56 61 6c 75 | 65 29 0d 09 62 79 20 62 |tCtlValu|e)..by b|
|00001a10| 65 69 6e 67 20 70 75 74 | 20 69 6e 74 6f 20 74 68 |eing put| into th|
|00001a20| 65 20 63 6f 6e 74 72 6c | 56 69 73 20 66 69 65 6c |e contrl|Vis fiel|
|00001a30| 64 20 6f 66 20 74 68 65 | 20 72 65 63 6f 72 64 2e |d of the| record.|
|00001a40| 20 6b 43 6f 6e 74 72 6f | 6c 56 69 73 69 62 6c 65 | kContro|lVisible|
|00001a50| 20 69 73 20 75 73 65 64 | 0d 09 74 68 65 20 73 61 | is used|..the sa|
|00001a60| 6d 65 20 77 61 79 20 74 | 6f 20 27 74 75 72 6e 20 |me way t|o 'turn |
|00001a70| 6f 6e 27 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 2e |on' the |control.|
|00001a80| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 6b 43 6f 6e | */.#def|ine kCon|
|00001a90| 74 72 6f 6c 49 6e 76 69 | 73 69 62 6c 65 09 09 30 |trolInvi|sible..0|
|00001aa0| 0d 23 64 65 66 69 6e 65 | 20 6b 43 6f 6e 74 72 6f |.#define| kContro|
|00001ab0| 6c 56 69 73 69 62 6c 65 | 09 09 09 30 78 46 46 0d |lVisible|...0xFF.|
|00001ac0| 0d 2f 2a 09 6b 53 63 72 | 6f 6c 6c 62 61 72 41 64 |./*.kScr|ollbarAd|
|00001ad0| 6a 75 73 74 20 61 6e 64 | 20 6b 53 63 72 6f 6c 6c |just and| kScroll|
|00001ae0| 62 61 72 57 69 64 74 68 | 20 61 72 65 20 75 73 65 |barWidth| are use|
|00001af0| 64 20 69 6e 20 63 61 6c | 63 75 6c 61 74 69 6e 67 |d in cal|culating|
|00001b00| 0d 09 76 61 6c 75 65 73 | 20 66 6f 72 20 63 6f 6e |..values| for con|
|00001b10| 74 72 6f 6c 20 70 6f 73 | 69 74 69 6f 6e 69 6e 67 |trol pos|itioning|
|00001b20| 20 61 6e 64 20 73 69 7a | 69 6e 67 2e 20 2a 2f 0d | and siz|ing. */.|
|00001b30| 23 64 65 66 69 6e 65 20 | 6b 53 63 72 6f 6c 6c 62 |#define |kScrollb|
|00001b40| 61 72 57 69 64 74 68 09 | 09 09 31 36 0d 23 64 65 |arWidth.|..16.#de|
|00001b50| 66 69 6e 65 20 6b 53 63 | 72 6f 6c 6c 62 61 72 41 |fine kSc|rollbarA|
|00001b60| 64 6a 75 73 74 09 09 28 | 6b 53 63 72 6f 6c 6c 62 |djust..(|kScrollb|
|00001b70| 61 72 57 69 64 74 68 20 | 2d 20 31 29 0d 0d 2f 2a |arWidth |- 1)../*|
|00001b80| 09 6b 53 63 72 6f 6c 6c | 54 77 65 65 6b 20 63 6f |.kScroll|Tweek co|
|00001b90| 6d 70 65 6e 73 61 74 65 | 73 20 66 6f 72 20 6f 66 |mpensate|s for of|
|00001ba0| 66 2d 62 79 2d 6f 6e 65 | 20 72 65 71 75 69 72 65 |f-by-one| require|
|00001bb0| 6d 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 63 72 |ments of| the scr|
|00001bc0| 6f 6c 6c 62 61 72 73 0d | 20 74 6f 20 68 61 76 65 |ollbars.| to have|
|00001bd0| 20 62 6f 72 64 65 72 73 | 20 63 6f 69 6e 63 69 64 | borders| coincid|
|00001be0| 65 20 77 69 74 68 20 74 | 68 65 20 67 72 6f 77 62 |e with t|he growb|
|00001bf0| 6f 78 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 6b |ox. */.#|define k|
|00001c00| 53 63 72 6f 6c 6c 54 77 | 65 65 6b 09 09 09 32 0d |ScrollTw|eek...2.|
|00001c10| 09 0d 2f 2a 09 6b 43 72 | 43 68 61 72 20 69 73 20 |../*.kCr|Char is |
|00001c20| 75 73 65 64 20 74 6f 20 | 6d 61 74 63 68 20 77 69 |used to |match wi|
|00001c30| 74 68 20 61 20 63 61 72 | 72 69 61 67 65 20 72 65 |th a car|riage re|
|00001c40| 74 75 72 6e 20 77 68 65 | 6e 20 63 61 6c 63 75 6c |turn whe|n calcul|
|00001c50| 61 74 69 6e 67 20 74 68 | 65 0d 09 6e 75 6d 62 65 |ating th|e..numbe|
|00001c60| 72 20 6f 66 20 6c 69 6e | 65 73 20 69 6e 20 74 68 |r of lin|es in th|
|00001c70| 65 20 54 65 78 74 45 64 | 69 74 20 72 65 63 6f 72 |e TextEd|it recor|
|00001c80| 64 2e 20 6b 44 65 6c 43 | 68 61 72 20 69 73 20 75 |d. kDelC|har is u|
|00001c90| 73 65 64 20 74 6f 20 63 | 68 65 63 6b 20 66 6f 72 |sed to c|heck for|
|00001ca0| 0d 09 64 65 6c 65 74 65 | 20 69 6e 20 6b 65 79 44 |..delete| in keyD|
|00001cb0| 6f 77 6e 73 2e 20 2a 2f | 0d 23 64 65 66 69 6e 65 |owns. */|.#define|
|00001cc0| 20 6b 43 72 43 68 61 72 | 09 09 09 09 09 31 33 0d | kCrChar|.....13.|
|00001cd0| 23 64 65 66 69 6e 65 20 | 6b 44 65 6c 43 68 61 72 |#define |kDelChar|
|00001ce0| 09 09 09 09 38 0d 09 0d | 2f 2a 09 6b 42 75 74 74 |....8...|/*.kButt|
|00001cf0| 6f 6e 53 63 72 6f 6c 6c | 20 69 73 20 68 6f 77 20 |onScroll| is how |
|00001d00| 6d 61 6e 79 20 70 69 78 | 65 6c 73 20 74 6f 20 73 |many pix|els to s|
|00001d10| 63 72 6f 6c 6c 20 68 6f | 72 69 7a 6f 6e 74 61 6c |croll ho|rizontal|
|00001d20| 6c 79 20 77 68 65 6e 20 | 74 68 65 20 62 75 74 74 |ly when |the butt|
|00001d30| 6f 6e 20 70 61 72 74 0d | 09 6f 66 20 74 68 65 20 |on part.|.of the |
|00001d40| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 73 63 72 6f 6c |horizont|al scrol|
|00001d50| 6c 62 61 72 20 69 73 20 | 70 72 65 73 73 65 64 2e |lbar is |pressed.|
|00001d60| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 6b 42 75 74 | */.#def|ine kBut|
|00001d70| 74 6f 6e 53 63 72 6f 6c | 6c 09 09 09 34 0d 09 0d |tonScrol|l...4...|
|00001d80| 2f 2a 09 6b 4d 61 78 54 | 45 4c 65 6e 67 74 68 20 |/*.kMaxT|ELength |
|00001d90| 69 73 20 61 6e 20 61 72 | 62 69 74 72 61 72 79 20 |is an ar|bitrary |
|00001da0| 6e 75 6d 62 65 72 20 75 | 73 65 64 20 74 6f 20 6c |number u|sed to l|
|00001db0| 69 6d 69 74 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |imit the| length |
|00001dc0| 6f 66 20 74 65 78 74 20 | 69 6e 20 74 68 65 20 54 |of text |in the T|
|00001dd0| 45 52 65 63 0d 09 73 6f | 20 74 68 61 74 20 76 61 |ERec..so| that va|
|00001de0| 72 69 6f 75 73 20 65 72 | 72 6f 72 73 20 77 6f 6e |rious er|rors won|
|00001df0| 27 74 20 6f 63 63 75 72 | 20 66 72 6f 6d 20 74 6f |'t occur| from to|
|00001e00| 6f 20 6d 61 6e 79 20 63 | 68 61 72 61 63 74 65 72 |o many c|haracter|
|00001e10| 73 20 69 6e 20 74 68 65 | 20 74 65 78 74 2e 20 2a |s in the| text. *|
|00001e20| 2f 0d 23 64 65 66 69 6e | 65 09 6b 4d 61 78 54 45 |/.#defin|e.kMaxTE|
|00001e30| 4c 65 6e 67 74 68 09 09 | 09 33 32 30 30 30 0d 0d |Length..|.32000..|
|00001e40| 2f 2a 20 6b 53 79 73 45 | 6e 76 69 72 6f 6e 73 56 |/* kSysE|nvironsV|
|00001e50| 65 72 73 69 6f 6e 20 69 | 73 20 70 61 73 73 65 64 |ersion i|s passed|
|00001e60| 20 74 6f 20 53 79 73 45 | 6e 76 69 72 6f 6e 73 20 | to SysE|nvirons |
|00001e70| 74 6f 20 74 65 6c 6c 20 | 69 74 20 77 68 69 63 68 |to tell |it which|
|00001e80| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 0d | version| of the.|
|00001e90| 20 20 20 53 79 73 45 6e | 76 52 65 63 20 77 65 20 | SysEn|vRec we |
|00001ea0| 75 6e 64 65 72 73 74 61 | 6e 64 2e 20 2a 2f 0d 23 |understa|nd. */.#|
|00001eb0| 64 65 66 69 6e 65 09 6b | 53 79 73 45 6e 76 69 72 |define.k|SysEnvir|
|00001ec0| 6f 6e 73 56 65 72 73 69 | 6f 6e 09 09 31 0d 0d 2f |onsVersi|on..1../|
|00001ed0| 2a 20 6b 4f 53 45 76 65 | 6e 74 20 69 73 20 74 68 |* kOSEve|nt is th|
|00001ee0| 65 20 65 76 65 6e 74 20 | 6e 75 6d 62 65 72 20 6f |e event |number o|
|00001ef0| 66 20 74 68 65 20 73 75 | 73 70 65 6e 64 2f 72 65 |f the su|spend/re|
|00001f00| 73 75 6d 65 20 61 6e 64 | 20 6d 6f 75 73 65 2d 6d |sume and| mouse-m|
|00001f10| 6f 76 65 64 20 65 76 65 | 6e 74 73 20 73 65 6e 74 |oved eve|nts sent|
|00001f20| 0d 20 20 20 62 79 20 4d | 75 6c 74 69 46 69 6e 64 |. by M|ultiFind|
|00001f30| 65 72 2e 20 4f 6e 63 65 | 20 77 65 20 64 65 74 65 |er. Once| we dete|
|00001f40| 72 6d 69 6e 65 20 74 68 | 61 74 20 61 6e 20 65 76 |rmine th|at an ev|
|00001f50| 65 6e 74 20 69 73 20 61 | 6e 20 4f 53 45 76 65 6e |ent is a|n OSEven|
|00001f60| 74 2c 20 77 65 20 6c 6f | 6f 6b 20 61 74 20 74 68 |t, we lo|ok at th|
|00001f70| 65 0d 20 20 20 68 69 67 | 68 20 62 79 74 65 20 6f |e. hig|h byte o|
|00001f80| 66 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 73 65 |f the me|ssage se|
|00001f90| 6e 74 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |nt to de|termine |
|00001fa0| 77 68 69 63 68 20 6b 69 | 6e 64 20 69 74 20 69 73 |which ki|nd it is|
|00001fb0| 2e 20 54 6f 20 64 69 66 | 66 65 72 65 6e 74 69 61 |. To dif|ferentia|
|00001fc0| 74 65 0d 20 20 20 73 75 | 73 70 65 6e 64 20 61 6e |te. su|spend an|
|00001fd0| 64 20 72 65 73 75 6d 65 | 20 65 76 65 6e 74 73 20 |d resume| events |
|00001fe0| 77 65 20 63 68 65 63 6b | 20 74 68 65 20 72 65 73 |we check| the res|
|00001ff0| 75 6d 65 4d 61 73 6b 20 | 62 69 74 2e 20 2a 2f 0d |umeMask |bit. */.|
|00002000| 23 64 65 66 69 6e 65 09 | 6b 4f 53 45 76 65 6e 74 |#define.|kOSEvent|
|00002010| 09 09 09 09 61 70 70 34 | 45 76 74 09 2f 2a 20 65 |....app4|Evt./* e|
|00002020| 76 65 6e 74 20 75 73 65 | 64 20 62 79 20 4d 75 6c |vent use|d by Mul|
|00002030| 74 69 46 69 6e 64 65 72 | 20 2a 2f 0d 23 64 65 66 |tiFinder| */.#def|
|00002040| 69 6e 65 09 6b 53 75 73 | 70 65 6e 64 52 65 73 75 |ine.kSus|pendResu|
|00002050| 6d 65 4d 65 73 73 61 67 | 65 09 31 09 09 2f 2a 20 |meMessag|e.1../* |
|00002060| 68 69 67 68 20 62 79 74 | 65 20 6f 66 20 73 75 73 |high byt|e of sus|
|00002070| 70 65 6e 64 2f 72 65 73 | 75 6d 65 20 65 76 65 6e |pend/res|ume even|
|00002080| 74 20 6d 65 73 73 61 67 | 65 20 2a 2f 0d 23 64 65 |t messag|e */.#de|
|00002090| 66 69 6e 65 09 6b 52 65 | 73 75 6d 65 4d 61 73 6b |fine.kRe|sumeMask|
|000020a0| 09 09 09 09 31 09 09 2f | 2a 20 62 69 74 20 6f 66 |....1../|* bit of|
|000020b0| 20 6d 65 73 73 61 67 65 | 20 66 69 65 6c 64 20 66 | message| field f|
|000020c0| 6f 72 20 72 65 73 75 6d | 65 20 76 73 2e 20 73 75 |or resum|e vs. su|
|000020d0| 73 70 65 6e 64 20 2a 2f | 0d 23 64 65 66 69 6e 65 |spend */|.#define|
|000020e0| 09 6b 4d 6f 75 73 65 4d | 6f 76 65 64 4d 65 73 73 |.kMouseM|ovedMess|
|000020f0| 61 67 65 09 09 30 78 46 | 41 09 2f 2a 20 68 69 67 |age..0xF|A./* hig|
|00002100| 68 20 62 79 74 65 20 6f | 66 20 6d 6f 75 73 65 2d |h byte o|f mouse-|
|00002110| 6d 6f 76 65 64 20 65 76 | 65 6e 74 20 6d 65 73 73 |moved ev|ent mess|
|00002120| 61 67 65 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 6b |age */.#|define.k|
|00002130| 4e 6f 45 76 65 6e 74 73 | 09 09 09 09 30 09 09 2f |NoEvents|....0../|
|00002140| 2a 20 6e 6f 20 65 76 65 | 6e 74 73 20 6d 61 73 6b |* no eve|nts mask|
|00002150| 20 2a 2f 0d 0d 2f 2a 20 | 31 2e 30 31 20 2d 20 6b | */../* |1.01 - k|
|00002160| 4d 69 6e 48 65 61 70 20 | 2d 20 54 68 69 73 20 69 |MinHeap |- This i|
|00002170| 73 20 74 68 65 20 6d 69 | 6e 69 6d 75 6d 20 72 65 |s the mi|nimum re|
|00002180| 73 75 6c 74 20 66 72 6f | 6d 20 74 68 65 20 66 6f |sult fro|m the fo|
|00002190| 6c 6c 6f 77 69 6e 67 0d | 09 20 65 71 75 61 74 69 |llowing.|. equati|
|000021a0| 6f 6e 3a 0d 09 09 09 0d | 09 09 09 4f 52 44 28 47 |on:.....|...ORD(G|
|000021b0| 65 74 41 70 70 6c 4c 69 | 6d 69 74 29 20 2d 20 4f |etApplLi|mit) - O|
|000021c0| 52 44 28 41 70 70 6c 69 | 63 5a 6f 6e 65 29 0d 09 |RD(Appli|cZone)..|
|000021d0| 09 09 0d 09 20 66 6f 72 | 20 74 68 65 20 61 70 70 |.... for| the app|
|000021e0| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 72 75 6e 2e |lication| to run.|
|000021f0| 20 49 74 20 77 69 6c 6c | 20 69 6e 73 75 72 65 20 | It will| insure |
|00002200| 74 68 61 74 20 65 6e 6f | 75 67 68 20 6d 65 6d 6f |that eno|ugh memo|
|00002210| 72 79 20 77 69 6c 6c 0d | 09 20 62 65 20 61 72 6f |ry will.|. be aro|
|00002220| 75 6e 64 20 66 6f 72 20 | 72 65 61 73 6f 6e 61 62 |und for |reasonab|
|00002230| 6c 65 2d 73 69 7a 65 64 | 20 73 63 72 61 70 73 2c |le-sized| scraps,|
|00002240| 20 46 4b 45 59 73 2c 20 | 65 74 63 2e 20 74 6f 20 | FKEYs, |etc. to |
|00002250| 65 78 69 73 74 20 77 69 | 74 68 20 74 68 65 0d 09 |exist wi|th the..|
|00002260| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2c 20 61 6e | applica|tion, an|
|00002270| 64 20 73 74 69 6c 6c 20 | 67 69 76 65 20 74 68 65 |d still |give the|
|00002280| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 73 6f 6d | applica|tion som|
|00002290| 65 20 27 62 72 65 61 74 | 68 69 6e 67 20 72 6f 6f |e 'breat|hing roo|
|000022a0| 6d 27 2e 0d 09 20 54 6f | 20 64 65 72 69 76 65 20 |m'... To| derive |
|000022b0| 74 68 69 73 20 6e 75 6d | 62 65 72 2c 20 77 65 20 |this num|ber, we |
|000022c0| 72 61 6e 20 75 6e 64 65 | 72 20 61 20 4d 75 6c 74 |ran unde|r a Mult|
|000022d0| 69 46 69 6e 64 65 72 20 | 70 61 72 74 69 74 69 6f |iFinder |partitio|
|000022e0| 6e 20 74 68 61 74 20 77 | 61 73 0d 09 20 6f 75 72 |n that w|as.. our|
|000022f0| 20 72 65 71 75 65 73 74 | 65 64 20 6d 69 6e 69 6d | request|ed minim|
|00002300| 75 6d 20 73 69 7a 65 2c | 20 61 73 20 67 69 76 65 |um size,| as give|
|00002310| 6e 20 69 6e 20 74 68 65 | 20 27 53 49 5a 45 27 20 |n in the| 'SIZE' |
|00002320| 72 65 73 6f 75 72 63 65 | 2e 20 2a 2f 0d 09 20 0d |resource|. */.. .|
|00002330| 23 64 65 66 69 6e 65 09 | 6b 4d 69 6e 48 65 61 70 |#define.|kMinHeap|
|00002340| 09 09 09 09 20 28 32 39 | 20 2a 20 31 30 32 34 29 |.... (29| * 1024)|
|00002350| 0d 09 0d 2f 2a 20 31 2e | 30 31 20 2d 20 6b 4d 69 |.../* 1.|01 - kMi|
|00002360| 6e 53 70 61 63 65 20 2d | 20 54 68 69 73 20 69 73 |nSpace -| This is|
|00002370| 20 74 68 65 20 6d 69 6e | 69 6d 75 6d 20 72 65 73 | the min|imum res|
|00002380| 75 6c 74 20 66 72 6f 6d | 20 50 75 72 67 65 53 70 |ult from| PurgeSp|
|00002390| 61 63 65 2c 20 77 68 65 | 6e 20 63 61 6c 6c 65 64 |ace, whe|n called|
|000023a0| 0d 09 20 61 74 20 69 6e | 69 74 69 61 6c 69 7a 61 |.. at in|itializa|
|000023b0| 74 69 6f 6e 20 74 69 6d | 65 2c 20 66 6f 72 20 74 |tion tim|e, for t|
|000023c0| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |he appli|cation t|
|000023d0| 6f 20 72 75 6e 2e 20 54 | 68 69 73 20 6e 75 6d 62 |o run. T|his numb|
|000023e0| 65 72 20 61 63 74 73 0d | 09 20 61 73 20 61 20 64 |er acts.|. as a d|
|000023f0| 6f 75 62 6c 65 2d 63 68 | 65 63 6b 20 74 6f 20 69 |ouble-ch|eck to i|
|00002400| 6e 73 75 72 65 20 74 68 | 61 74 20 74 68 65 72 65 |nsure th|at there|
|00002410| 20 72 65 61 6c 6c 79 20 | 69 73 20 65 6e 6f 75 67 | really |is enoug|
|00002420| 68 20 6d 65 6d 6f 72 79 | 20 66 6f 72 20 74 68 65 |h memory| for the|
|00002430| 0d 09 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |.. appli|cation t|
|00002440| 6f 20 72 75 6e 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |o run, i|ncluding|
|00002450| 20 77 68 61 74 20 68 61 | 73 20 62 65 65 6e 20 74 | what ha|s been t|
|00002460| 61 6b 65 6e 20 75 70 20 | 61 6c 72 65 61 64 79 20 |aken up |already |
|00002470| 62 79 0d 09 20 70 72 65 | 2d 6c 6f 61 64 65 64 20 |by.. pre|-loaded |
|00002480| 72 65 73 6f 75 72 63 65 | 73 2c 20 74 68 65 20 73 |resource|s, the s|
|00002490| 63 72 61 70 2c 20 63 6f | 64 65 2c 20 61 6e 64 20 |crap, co|de, and |
|000024a0| 6f 74 68 65 72 20 73 75 | 6e 64 72 79 20 6d 65 6d |other su|ndry mem|
|000024b0| 6f 72 79 20 62 6c 6f 63 | 6b 73 2e 20 2a 2f 0d 09 |ory bloc|ks. */..|
|000024c0| 20 0d 23 64 65 66 69 6e | 65 09 6b 4d 69 6e 53 70 | .#defin|e.kMinSp|
|000024d0| 61 63 65 09 09 09 09 28 | 32 30 20 2a 20 31 30 32 |ace....(|20 * 102|
|000024e0| 34 29 0d 0d 2f 2a 09 6b | 45 78 74 72 65 6d 65 4e |4)../*.k|ExtremeN|
|000024f0| 65 67 20 61 6e 64 20 6b | 45 78 74 72 65 6d 65 50 |eg and k|ExtremeP|
|00002500| 6f 73 20 61 72 65 20 75 | 73 65 64 20 74 6f 20 73 |os are u|sed to s|
|00002510| 65 74 20 75 70 20 77 69 | 64 65 20 6f 70 65 6e 20 |et up wi|de open |
|00002520| 72 65 63 74 61 6e 67 6c | 65 73 20 61 6e 64 20 72 |rectangl|es and r|
|00002530| 65 67 69 6f 6e 73 2e 20 | 2a 2f 0d 23 64 65 66 69 |egions. |*/.#defi|
|00002540| 6e 65 20 6b 45 78 74 72 | 65 6d 65 4e 65 67 09 09 |ne kExtr|emeNeg..|
|00002550| 09 09 2d 33 32 37 36 38 | 0d 23 64 65 66 69 6e 65 |..-32768|.#define|
|00002560| 20 6b 45 78 74 72 65 6d | 65 50 6f 73 09 09 09 09 | kExtrem|ePos....|
|00002570| 28 33 32 37 36 37 20 2d | 20 31 29 09 2f 2a 20 72 |(32767 -| 1)./* r|
|00002580| 65 71 75 69 72 65 64 20 | 74 6f 20 61 64 64 72 65 |equired |to addre|
|00002590| 73 73 20 61 6e 20 6f 6c | 64 20 72 65 67 69 6f 6e |ss an ol|d region|
|000025a0| 20 62 75 67 20 2a 2f 0d | 09 0d 2f 2a 20 6b 54 45 | bug */.|../* kTE|
|000025b0| 53 6c 6f 70 20 70 72 6f | 76 69 64 65 73 20 73 6f |Slop pro|vides so|
|000025c0| 6d 65 20 65 78 74 72 61 | 20 73 65 63 75 72 69 74 |me extra| securit|
|000025d0| 79 20 77 68 65 6e 20 70 | 72 65 2d 66 6c 69 67 68 |y when p|re-fligh|
|000025e0| 74 69 6e 67 20 65 64 69 | 74 20 63 6f 6d 6d 61 6e |ting edi|t comman|
|000025f0| 64 73 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 6b |ds. */.#|define.k|
|00002600| 54 45 53 6c 6f 70 09 09 | 09 09 09 31 30 32 34 0d |TESlop..|...1024.|
|00002610| 0d 2f 2a 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |./* The |followin|
|00002620| 67 20 61 72 65 20 69 6e | 64 69 63 69 65 73 20 69 |g are in|dicies i|
|00002630| 6e 74 6f 20 53 54 52 23 | 20 72 65 73 6f 75 72 63 |nto STR#| resourc|
|00002640| 65 73 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 65 |es. */.#|define.e|
|00002650| 57 72 6f 6e 67 4d 61 63 | 68 69 6e 65 09 09 09 31 |WrongMac|hine...1|
|00002660| 0d 23 64 65 66 69 6e 65 | 09 65 53 6d 61 6c 6c 53 |.#define|.eSmallS|
|00002670| 69 7a 65 09 09 09 09 32 | 0d 23 64 65 66 69 6e 65 |ize....2|.#define|
|00002680| 09 65 4e 6f 4d 65 6d 6f | 72 79 09 09 09 09 33 0d |.eNoMemo|ry....3.|
|00002690| 23 64 65 66 69 6e 65 09 | 65 4e 6f 53 70 61 63 65 |#define.|eNoSpace|
|000026a0| 43 75 74 09 09 09 09 34 | 0d 23 64 65 66 69 6e 65 |Cut....4|.#define|
|000026b0| 09 65 4e 6f 43 75 74 09 | 09 09 09 09 35 0d 23 64 |.eNoCut.|....5.#d|
|000026c0| 65 66 69 6e 65 09 65 4e | 6f 43 6f 70 79 09 09 09 |efine.eN|oCopy...|
|000026d0| 09 09 36 0d 23 64 65 66 | 69 6e 65 09 65 45 78 63 |..6.#def|ine.eExc|
|000026e0| 65 65 64 50 61 73 74 65 | 09 09 09 37 0d 23 64 65 |eedPaste|...7.#de|
|000026f0| 66 69 6e 65 09 65 4e 6f | 53 70 61 63 65 50 61 73 |fine.eNo|SpacePas|
|00002700| 74 65 09 09 09 38 0d 23 | 64 65 66 69 6e 65 09 65 |te...8.#|define.e|
|00002710| 4e 6f 57 69 6e 64 6f 77 | 09 09 09 09 39 0d 23 64 |NoWindow|....9.#d|
|00002720| 65 66 69 6e 65 09 65 45 | 78 63 65 65 64 43 68 61 |efine.eE|xceedCha|
|00002730| 72 09 09 09 09 31 30 0d | 23 64 65 66 69 6e 65 09 |r....10.|#define.|
|00002740| 65 4e 6f 50 61 73 74 65 | 09 09 09 09 31 31 0d 0d |eNoPaste|....11..|
|00002750| 23 64 65 66 69 6e 65 09 | 72 4d 65 6e 75 42 61 72 |#define.|rMenuBar|
|00002760| 09 31 32 38 09 09 09 09 | 2f 2a 20 61 70 70 6c 69 |.128....|/* appli|
|00002770| 63 61 74 69 6f 6e 27 73 | 20 6d 65 6e 75 20 62 61 |cation's| menu ba|
|00002780| 72 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 72 41 62 |r */.#de|fine.rAb|
|00002790| 6f 75 74 41 6c 65 72 74 | 09 31 32 38 09 09 09 09 |outAlert|.128....|
|000027a0| 2f 2a 20 61 62 6f 75 74 | 20 61 6c 65 72 74 20 2a |/* about| alert *|
|000027b0| 2f 0d 23 64 65 66 69 6e | 65 09 72 55 73 65 72 41 |/.#defin|e.rUserA|
|000027c0| 6c 65 72 74 09 31 32 39 | 09 09 09 09 2f 2a 20 75 |lert.129|..../* u|
|000027d0| 73 65 72 20 65 72 72 6f | 72 20 61 6c 65 72 74 20 |ser erro|r alert |
|000027e0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 72 44 6f 63 57 |*/.#defi|ne.rDocW|
|000027f0| 69 6e 64 6f 77 09 31 32 | 38 09 09 09 09 2f 2a 20 |indow.12|8..../* |
|00002800| 61 70 70 6c 69 63 61 74 | 69 6f 6e 27 73 20 77 69 |applicat|ion's wi|
|00002810| 6e 64 6f 77 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |ndow */.|#define.|
|00002820| 72 56 53 63 72 6f 6c 6c | 09 31 32 38 09 09 09 09 |rVScroll|.128....|
|00002830| 2f 2a 20 76 65 72 74 69 | 63 61 6c 20 73 63 72 6f |/* verti|cal scro|
|00002840| 6c 6c 62 61 72 20 63 6f | 6e 74 72 6f 6c 20 2a 2f |llbar co|ntrol */|
|00002850| 0d 23 64 65 66 69 6e 65 | 09 72 48 53 63 72 6f 6c |.#define|.rHScrol|
|00002860| 6c 09 31 32 39 09 09 09 | 09 2f 2a 20 68 6f 72 69 |l.129...|./* hori|
|00002870| 7a 6f 6e 74 61 6c 20 73 | 63 72 6f 6c 6c 62 61 72 |zontal s|crollbar|
|00002880| 20 63 6f 6e 74 72 6f 6c | 20 2a 2f 0d 23 64 65 66 | control| */.#def|
|00002890| 69 6e 65 09 6b 45 72 72 | 53 74 72 69 6e 67 73 09 |ine.kErr|Strings.|
|000028a0| 31 32 38 09 09 09 09 2f | 2a 20 65 72 72 6f 72 20 |128..../|* error |
|000028b0| 73 74 72 69 6e 67 20 6c | 69 73 74 20 2a 2f 0d 00 |string l|ist */..|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00002910| 80 05 43 6c 6f 73 65 00 | 00 00 54 00 04 00 00 00 |..Close.|..T.....|
|00002920| 00 00 45 00 10 00 59 00 | 59 04 03 59 65 73 00 00 |..E...Y.|Y..Yes..|
|00002930| 0a 54 45 53 61 6d 70 6c | 65 2e 68 6d 02 00 00 00 |.TESampl|e.hm....|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 a0 a1 88 ae 00 00 | 00 00 00 00 01 7e 00 00 |........|.....~..|
|00002980| 00 00 00 00 00 00 81 04 | 4e 4f 54 45 00 00 00 3c |........|NOTE...<|
|00002990| 00 03 00 00 00 00 00 68 | 01 20 00 7c 01 71 04 02 |.......h|. .|.q..|
|000029a0| 4f 4b 00 00 00 00 00 b0 | 00 10 00 c0 00 72 88 00 |OK......|.....r..|
|000029b0| 00 00 00 00 00 0c 00 0a | 00 5c 01 72 88 00 00 00 |........|.\.r....|
|000029c0| 00 00 00 b0 00 78 00 c0 | 00 da 88 00 00 00 00 1c |.....x..|........|
|000029d0| 00 40 00 40 00 9a 01 c4 | 00 01 01 00 00 00 00 00 |.@.@....|........|
|000029e0| 00 00 00 82 07 43 6f 6e | 66 69 72 6d 00 00 00 34 |.....Con|firm...4|
|000029f0| 00 02 00 00 00 00 00 40 | 00 08 00 54 00 51 04 02 |.......@|...T.Q..|
|00002a00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2d 2d 2d |...H..Mo|naco.---|
|00002a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002a20| 2d 2d 2d 2d 2d 2d 00 06 | 00 04 00 27 00 00 01 df |------..|...'....|
|00002a30| 02 30 00 3c 00 24 01 dd | 02 3d a0 9f 14 5f 00 00 |.0.<.$..|.=..._..|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00002a50| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 15 15 84 |...L...L|...2....|
|00002a60| 07 5a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.Z.....2|..MPSR..|
|00002a70| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+